<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="jt" uri="http://www.jsoft.org/tags/jsoft"%>
<%@ taglib prefix="jh" uri="http://www.jsoft.org/tags/jsoft-html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	if(path!=null&&path.equals("/")){
	   path="";
	} 
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>新增文章</title>
		<link href="<%=basePath%>admin/styles/default.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath%>admin/styles/page.css" rel="stylesheet" type="text/css" />
		<script type=text/javascript src="<%=basePath%>admin/scripts/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript">
		function form_delete(href)
		{
			if(confirm("您确定要删除吗？执行删除后数据将无法恢复！"))
			{
   				window.location.href = href;
   			}
		}
		</script>
	</head>

	<body>
		<div class="title">
			<h2>
				新增文章
				<a href="<%=basePath%>manager/news/list.do">返回列表</a>
			</h2>
		</div>
		<div id="container">
			<!-- table -->
			<div id="info">
				<form action="<%=basePath%>manager/news/save.do" method="post">
					<input type="hidden" name="id" value="${requestScope.news.id}" >
					<table width="100%" cellpadding="3" cellspacing="1" border="0" bgcolor="#e3e3e3">
						 
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">标题</td>
							<td>
								<input type="text" name="title" value="${requestScope.news.title}" size="60" class="text" />
							</td>
						</tr>
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">副标题</td>
							<td>
								<input type="text" name="dtitle" value="${requestScope.news.dtitle}" size="60" class="text" />
							</td>
						</tr>
						<tr bgcolor="#FFFFFF">
							<td colspan="2">
								<input type="hidden" id="content_html" name="contentHtml" value="${requestScope.content}">
								<iframe id="body_Frame"
									src="<%=basePath%>plugins/jsofteditor/editor/jsofteditor.html?InstanceName=content_html&Toolbar=Basic"
									width="710" height="500" frameborder="no" scrolling="no"></iframe>
							</td>
						</tr>
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">发布时间</td>
							<td>
								<input type="text" name="addtime" value="${requestScope.news.addtime}" size="30" class="text"
									onFocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" />
							</td>
						</tr>
					 
						 
						 
						 
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">状态</td>
							<td>
								<select name="state">
									<option value="1" ${(requestScope.news.state eq '1')?'selected=selected':''}>-正常-</option>
									<option value="0" ${(requestScope.news.state eq '0')?'selected=selected':''}>-隐藏-</option>
								</select>
							</td>
						</tr>
					</table>
					<div style="height: 10px;"></div>
					<input type="submit" value="提交" class="button" />
					<input type="reset" value="重置" class="button" />
					<div style="height: 10px;"></div>
				</form>
			</div>
		</div>
	</body>
</html>
